package main

import (
	"os"
)

func main(){
	filePath := "../1.txt"
	file,_ := os.OpenFile(filePath,os.O_WRONLY | os.O_TRUNC,0666)
	slice := make([]byte,5,10)
	for i:=0;i<=4;i++{
		slice[i] = 'x'
	}
	file.Write(slice);
}
